﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace DLGameCore.Utility
{
    public class StringUtility
    {
        public static string getClassState(string gameState)
        {
            string classState="C";
            string [] vals = gameState.ToString().Split(new char[]{'_'});

            foreach(string val in vals){
                char[] cs = val.ToLower().ToCharArray();
                cs[0] = Char.ToUpper(cs[0]);
                string modVal = new string(cs);
                classState += modVal;
            }
            return classState;
        }
    }
}
